package com.lyt.mall.auth.feign;

import com.lyt.common.utils.R;
import com.lyt.mall.auth.vo.LoginVO;
import com.lyt.mall.auth.vo.SocialUserVO;
import com.lyt.mall.auth.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: LiuYutong
 * 会员服务
 */
@FeignClient("mall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVO vo);
    @RequestMapping("/member/member/login")
    R login(@RequestBody LoginVO vo);
    @RequestMapping("/member/member/oauth2/login")
    R socialLogin(@RequestBody SocialUserVO vo);
}
